package arr;

public class test1Refactoring {
    public static void judge(byte a, byte b) {
        if (a > b) {
            System.out.println("a > b");
        } else if (a == b) {
            System.out.println("a == b");
        } else {
            System.out.println("a < b");
        }
    }

    public static void judge(short a, short b) {
        if (a > b) {
            System.out.println("a > b");
        } else if (a == b) {
            System.out.println("a == b");
        } else {
            System.out.println("a < b");
        }
    }

    public static void judge(int a, int b) {
        if (a > b) {
            System.out.println("a > b");
        } else if (a == b) {
            System.out.println("a == b");
        } else {
            System.out.println("a < b");
        }
    }

    public static void judge(long a, long b) {
        if (a > b) {
            System.out.println("a > b");
        } else if (a == b) {
            System.out.println("a == b");
        } else {
            System.out.println("a < b");
        }
    }

    public static void main(String[] args) {
        byte a1 = 0, b1 = 1;
        short a2 = 0, b2 = 1;
        int a3 = 0, b3 = 1;
        long a4 = 0, b4 = 1;
        judge(a1, b1);
        judge(a2, b2);
        judge(a3, b3);
        judge(a4, b4);
    }
}
